module.exports = {
  // 配置代理
  devServer: {
    proxy: {
      "/api": {
        target: "https://jinsi.com",
        changeOrigin: true,
      },
    },
  },
  publicPath: "./",
  chainWebpack: (config) => {
    config.plugin("html").tap((args) => {
      // 页面标题
      args[0].title = "金四";
      return args;
    });
  },

  configureWebpack: {
    devtool: "source-map",
  },
};
